package com.hp.dao;

import com.hp.pojo.Seehouseapplication;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SeehouseapplicationMapper {
    /*Ouch*/
    //添加看房申请
    int AddSeeHouseApplication(Seehouseapplication seehouseapplication);
    //卖家同意看房申请
    int AcceptSeeHouse(int seehouseapplicationId);
    //取消看房申请
    int QuitSeeHouse(int seehouseapplicationId);
    //成功看房
    int CompleteSeeHouse(int seehouseapplicationId);
    //查询看房申请
    List<Seehouseapplication> GetSeeHouseApplications();

    public List<Seehouseapplication> GetSeehouseApplication2(int agentId);

    public List<Seehouseapplication> GetSeehouseApplication1(int agentId);

    public List<Seehouseapplication> GetSeehouseByuserId(int seehouseapplicationApplyerid);

    public List<Seehouseapplication> GetSeehouseByid(int seehouseapplicationId);

    int CheckApplication(Seehouseapplication seehouseapplication);
}
